function qualityTest

printresult = 0;
tests = str2func(suite([mfilename '.m']));
[passres, failres, warnres] = runner(tests, printresult);
% End boilerplate

function testAllFine
SAMPLE_EXPECTED = [20 5 40 10]; % x y width height
SAMPLE_ALL_FINE = [20 5 40 10];
assertEquals('', quality(SAMPLE_ALL_FINE, SAMPLE_EXPECTED), 1)

function testAllFine
SAMPLE_EXPECTED = [20 5 40 10]; % x y width height
SAMPLE_ALL_WRONG = [20 0 40 10];
assertEquals('', quality(SAMPLE_ALL_WRONG, SAMPLE_EXPECTED), 1)